<template>
    
       <div>
               999testvuex
               {{ count }}
               <p>
                <button @click="increment">+</button>
                <button @click="decrement">-</button>
                <button @click="test">----</button>

              </p>
               
       </div>
  
</template>
<script type="text/javascript">
    export default{
        name:'test',
        data(){
            return{

            }
        },
        methods:{
            increment(){
              this.$store.commit('increment')
            },
            decrement(){
              this.$store.commit('decrement')
            },
            test(){
                this.$store.commit('SET_USERINFO',[11,22])
                console.log(this.$store.getters.userinfo+'???')
            }
        },
        computed:{
            count(){
                return this.$store.state.count
            },
        }


    }

</script>